﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Threading;
using SystemAnalizer.Utils;
using SystemAnalizer.ViewModel;


namespace SystemAnalizer
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        private ProgramSettings prog_settings;
        private MainWindowViewModel mainwind_viewmodel = new MainWindowViewModel();
        public MainWindow()
        {
            InitializeComponent();
            this.DataContext = this.mainwind_viewmodel;
            LoadSettings();
        }

        public ProgramSettings ProgrammSetting
        {
            get { return this.prog_settings; }
        }

        private void LoadSettings()
        {
            this.prog_settings = new ProgramSettings();
            ProgramSettings.ResourceActivator(this.prog_settings.GetSettingStruct.culture, this.Resources);
            ProgramSettings.MessageResourceActivator(this.prog_settings.GetSettingStruct.culture);
        }

        
    }
}
